package com.github.tommas.admintpl.dao;

import com.github.tommas.admintpl.bean.model.FileInfoModel;
import com.github.tommas.admintpl.mybatis.Context;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FileStorageMapper {
    int insertFileInfos(Context context, List<FileInfoModel> infos);

    FileInfoModel findFileInfo(Integer id, Integer targetId, String businessType);

    List<FileInfoModel> findFileInfoByTarget(Integer targetId, String businessType);

    int updateTargetFileInfo(Integer targetId, String businessType, List<Integer> ids);
}
